]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
searchDisplay: Unset default result when clearing search
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 8 Feb 2013 16:49:37 +0000 (17:49 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 8 Feb 2013 16:52:39 +0000 (17:52 +0100)
If we fail to do so, a previously set result may be activated by
hitting enter, even if a search did not turn up any actual results.

js/ui/searchDisplay.js

index 2008451a3e7abdd16d2a8c642a51ce2918483131..5df94be12bfa1847eb5e8dcc4ffa8c53b274c581 100644 (file)
@@ -423,6 +423,7 @@ const SearchResults = new Lang.Class({
         this._searchSystem.reset();
         this._statusBin.hide();
         this._clearDisplay();
+        this._defaultResult = null;
     },
 
     startingSearch: function() {